/**
 * point free
 */

// Hello World -> hello_world
// 先转小写再将空格替换为_
import {
  flowRight,
  toLower,
  replace,
} from 'lodash/fp'

// point free模式，组合过程中不需要指明处理的数据
const f = flowRight(replace(/\s+/, '_'), toLower)
console.log(f('Hello World'))

export {}
